package com.easonji.common.page;

/**
 * @ClassName: PageInfoBT
 * @Description: 分页结果的封装(for Bootstrap Table)
 * @Author: LiuJun
 * @date: 2018/07/17 18:33
 * @Version: 1.0
 * @Copyright: Copyright (c) 2018 - 2019
 */
public class PageInfo {

    /**
     * 结果集
     */
    private Object rows;

    /**
     * 总数
     */
    private long total;

    public PageInfo(Object rows, Long total) {
        this.rows = rows;
        this.total = total;
    }

    public Object getRows() {
        return rows;
    }

    public void setRows(Object rows) {
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "{\"rows\":\"" + rows + "\",\"total\":\"" + total + "\"} ";
    }
}
